﻿using System;
using System.Collections.Generic;

using NHibernate;
using NHibernateDemo.Data;
using NHibernateDemo.Domain.Entities;


namespace WebApplication1
{
    public partial class _Default : System.Web.UI.Page
    {
        ISession Session = SessionHelper.SessionFactory.GetCurrentSession();

        protected void Page_Load(object sender, EventArgs e)
        {
            IList<Message> lm = Session.CreateCriteria(typeof(Message))
                                                .List<Message>();
            rptThemeList.DataSource = lm;
            rptThemeList.DataBind();
        }
    }
}
